Model selection for photometric changes in color images