Failure to upload photo no longer crashes program