add hsv2rgb and rgb2hsv helper functions