Anomaly Detection for Vision-based Railway Inspection