Added support for colorspace conversion.