TagProp: Discriminative metric learning in nearest neighbor models for image auto-annotation