fix RGB_to_HSV (== doesn't seem to always work properly with floating points)