From Shadows to Highlights: Learning Light and Contrast in Photography