	                    	h = Math.max(1, Math.round(h));
	    						
	    						data = 'data:image/svg+xml,' + btoa(mxUtils.getXml(svgs[0], '\n'));
	    						graph.insertVertex(null, null, '', x, y, w, h, 'shape=image;image=' + data + ';');
	    					}
    					}
	    			}
					else
					{
                    	var img = new Image();
                    	
                    	img.onload = function()
                    	{
	                    	var w = Math.max(1, img.width);
	                    	var h = Math.