public function createImage($path) { return $this->engine->createImage($path); }
public function createSource(Engine $engine) { try { return $engine->createImage($this->getAttribute('src')); } catch (InvalidResourceException $e) { if ($this->getAttribute('ignore-error')) { return EmptyImage::getInstance(); } throw $e; } }