public function ensureHasThumbnail() { if (!$this->thumb) { $ip = new ImageProcessor(); $ip->makeUploadedImageThumbnail($this); } }