fixing image uploads