Correctly deal with SRGB color space