public function doFilter($file, $arguments, $typeOptions)
    {
        $Imagine = new Imagine();
        $image = $Imagine->open($file);
        $colour = $image->palette()->color('#' . $arguments['colorize']);
        $image->effects()->colorize($colour);
        $image->save($file);
    }