added workaround for image uploads to work in heroku