/** * Sets the image type * * @param string $type 'jpg', 'png', etc... * * @return Capture */ public function setImageType($type) { $this->imageType = Types::getClass($type); return $this; }