added color space transformation