protected function createImage() { ob_start(); imagepng($this->sourceImage->getImageResource()); return ob_get_clean(); }