Enhancing Photographs Using Content-Specific Image Priors