public static function thumbnail($filename, $width, $height, $mode = self::THUMBNAIL_OUTBOUND, $quality = null,
                                     $checkRemFileMode = self::CHECK_REM_MODE_NONE)
    {
        return Image::getImagine()
            ->open(static::thumbnailFile($filename, $width, $height, $mode, $quality, $checkRemFileMode));
    }