Learning image representations for anomaly detection: application to discovery of histological alterations in drug development