fix the uploaded images when not all required form fields are filled