function contrast($level) { imagefilter($this->image, IMG_FILTER_CONTRAST, $this->keep_within($level, -100, 100)); return $this; }