Visual masking in natural scenes: Database, models, and an application to perceptual image coding