https://github.com/szimek/signature_pad
https://kangax.github.io/jstests/toDataUrl_mime_type_test/
https://github.com/msanatan/legalesign-nodejs
http://www.graphicalweb.org/2010/papers/62-From_SVG_to_Canvas_and_Back/
function importCanvas(sourceCanvas, targetSVG) {
// get base64 encoded png data url from Canvas
var img_dataurl = sourceCanvas.toDataURL("image/png");
var svg_img = document.createElementNS(
"http://www.w3.org/2000/svg", "image");
svg_img.setAttributeNS(
"http://www.w3.org/1999/xlink", "xlink:href", img_dataurl);
targetSVG.appendChild(svg_img);
}