Fixed an issue with RGB->HSV conversion.