Correct the conversion to non-sRGB color spaces. Fixes #23.