Anomaly Detection and Localization in Low Quality Surveillance Videos