Removing bad image