added image upload, with thumbnails