some small (but important) fixes
handle images in the HTML output