rgb_to_hsv() returned invalid hue calculations, this is now fixed.