trying to get image uploads to work correctly