public function _apply_filter($filter) { //give the image to the filter $filter->image($this); //apply the filter $filter->apply_filter(); return $this; }