Support for more advanced HTML renderers

This pull requests modifies the HTML renderer call in order to pass the current page instance. This allows for more advanced renderers that can be influenced by the page's metadata or its path, which I'm using to place images created from the source document file under a directory derived from this path.

Due to use of reflection, old HTML renderer functions are not affected.