Add support for SVG tspan and image elements, and the preserveAspectRatio attribute

This pull request adds this support and updates the documentation.