Why are image uploads getting lost when my form is submitted?