remove invalid image