use colorspace for conversion, otherwise we get inverted images.