Update toHSV() in ImageClass

The toHSV() was not returning HSV image. It worked only when the last line was changed. So I changed the return line. If you have trouble then revert to the original, it is commented out!