public function apply($image) { imagefilter($image->getCore(), IMG_FILTER_PIXELATE, $this->amount, true); return $image; }