Anomaly Detection, Localization and Classification for Railway Inspection