more work on image and uploading