public static function resizeAndSave($dir, $fileName, $resizeWidth)
    {
        $DS = DIRECTORY_SEPARATOR;

        // Full original image path
        $fullPath = $dir . $DS . $fileName;

        if (!@file_exists($fullPath)) {
            // if original file doesn't exists - breack
            return false;
        }

        try {
            $imageComponent = static::getImageComponent();
            $image_r = $imageComponent->load($fullPath);
            /* @var $image_r Image_GD|Image_Imagick */
            if (is_array($resizeWidth)) {
                foreach ($resizeWidth as $prefix => $width) {
                    $image_r->resize($width, static::getMaxHeight($width));
                    $image_r->save($dir . $DS . $prefix . $fileName);
                }
            } else {
                $image_r->resize($resizeWidth, static::getMaxHeight($resizeWidth));
                $image_r->save($fullPath);
            }
        } catch (\Exception $e) {
            return false;
        }

        return true;
    }