Updated web.js to upload images