Simplify RGB to HSV conversion