public function getTag($width = null, $height = null, $crop = true) { $tag = new ImageTag($this->image, $this->fileStorage); if ($width) { $tag->setWidth($width); } if ($height) { $tag->setHeight($height); } $tag->setCrop($crop); return $tag; }