Tool for converting RGB images to XYZ and back again