Fix bug in rgb2hsv transform