Updated HSV to RGB conversion