Color matching images with unknown non-linear encodings