function smooth($level) { imagefilter($this->image, IMG_FILTER_SMOOTH, $this->keep_within($level, -10, 10)); return $this; }