public function colorize(ColorInterface $color)
{
// Create an image resource.
$this->createResource();
imagefilter($this->resource, IMG_FILTER_COLORIZE, $color->getRed(), $color->getGreen(), $color->getBlue());
$this->output = $this->resource;
return $this;
}