private function generateGalleryImage($model, File $file, $info)
    {
        $image = $this->placeholderImage;

        if ($file->isSvgImage
            || (($file->height <= Config::get('gdMaxImgHeight')) && ($file->width <= Config::get('gdMaxImgWidth')))
        ) {
            $width  = \min($file->width, $this->thumbnailWidth);
            $height = \min($file->height, $this->thumbnailHeight);
            $image  = Image::get($model->path, $width, $height, 'center_center');
        }

        return Image::getHtml(
            $image,
            '',
            'class="gimage removable" title="' . StringUtil::specialchars($info) . '"'
        );
    }