Fixed bug in RGB to HSV conversion.