Ability to obtain just the SVG

I've added some convenience methods to just obtain the SVG but without drawing it to a canvas. I think this may be beneficial to other people too.