web.js modified to get images from local directory