added color space conversion