Adds RenderTo function to render directly to a writer.
Adds RenderTo function to render directly to a writer.