public function grayscale() { $this->preModify(); imagefilter($this->resource, IMG_FILTER_GRAYSCALE); $this->postModify(); return $this; }