Rejigger how the SVG is setup and how bounds are used. Hopefully it's cleaner, easier to understand, and easier to use.