If we fail to save a JPEG, delete the corrupted file and try again