modify web.js to support img