fixed bug that caused RGB images to be saved as if they were CIELab images

Signed-off-by: Tanner Schmidt <tws10@cs.washington.edu>