  							svgRoot.setAttribute('viewBox', '0 0 ' + w + ' ' + h);
	    						}
	    						// Uses width and height from viewbox for
	    						// missing width and height attributes
	    						else if (isNaN(w) || isNaN(h))
	    						{
	    							var tokens = vb.split(' ');
	    							
	    							if (tokens.length > 3)
	    							{
	    								w = parseFloat(tokens[2]);
	    								h = parseFloat(tokens[3]);
	    							}
	    						}
	    						
		                    	w = Math.max(1, Math.round(w));
	