updated web.js and imdex.html to cope with image references