Added xhtml generation and local image caching in .bookbuilder