Read, write, pixel2rgb and rgb2hsv work perfectly