Anomaly detection in image or latent space of patch-based auto-encoders for industrial image analysis