fixed color space inversion