add support for images and dumping to html