Make sure the uploaded image is saved when the parent form has validation error