fixed colorspace for resizing image