modified `web.js' and `xindex.html' to serve images