HSV to RGB and RGB to HSV functions updated