adding put call for image saving to web.js