Added support for rendering to an existing stream directly