more work on image uploads