code: function(url, img) {
          var svgImage = document.createElementNS(SVG_NS_URL, 'image');
          svgImage.setAttributeNS(XLINK_NS_URL, 'xlink:href', url);
          svgImage.setAttribute('x', 0);
          svgImage.setAttribute('y', 0);
          svgImage.setAttribute('width', img.width);
          svgImage.setAttribute('height', img.height);
          return svgImage;
        }
docs: Build an svg image tag.