public function getResizedVersion(ImageResizer $resizer, $width)
    {
        if (!$this->class->hasWidth($width)) {
            throw new WidthNotAllowedException($width);
        }
        return $resizer->resize(
            $this->class->getImageResizeDefinitionByWidth($width),
            $this->original_ifi,
            true
        );
    }