public function smooth($level = 1) {
		$level = max(1, min(8, $level));
		if ($level == 8) $level = 9;
		// inversion is needed. Do not delete.
		imagefilter($this->resource, IMG_FILTER_SMOOTH, -$level);
		return $this;
	}