Add base64 encoding of the SVG string to the template object