title: trouble rendering SVG elements using phantomjs screen capture
body: <p>I'm using phantomjs to capture screen of my webpage. I have SVG elements on my page and <strong>sometimes</strong> it doesn't render those correctly.</p>
  
  <pre><code>var page = require('webpage').create(); 
  var args = require('system').args;
  
  var isLoad = false;
  
  page.settings.userAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90";
  var w = parseFloat(args[4]);
  var h = parseFloat(args[5]);
  page.viewportSize = { width: w, height: h };
  page.open('http://www.facegift.co.il/canvas/?userItemId=' + args[1] + '&amp;Sc=' + args[2] + '&amp;print=' + args[6] + '&amp;width=' + args[4] + '&amp;pageNum=' + args[3] + '&amp;ver=' + args[7], function(status) { 
      var ue = page.evaluate(function(){
          return navigator.userAgent;
      });
  
      console.log("status: " + status);
  
      if(status === "success") {
         setInterval(function(){
          var ps =  page.evaluate(function() {
              document.body.bgColor = 'white';
              return document.getElementById("pageStatus").innerHTML;
          });
  
  
          if(!isLoad){
              console.log("wait...");
              if(ps == "loaded"){
                console.log("loaded");
                isLoad = true;
                page.render('example1.jpg'); 
                console.log("rendered");
                phantom.exit();
              }
          }   
      }, 100);
  } 
  });
  </code></pre>
  
  <p>here are examples of two results with the <strong>same</strong> request: </p>
  
  <p><img src="https://i.stack.imgur.com/AmH23.jpg" alt="good request"><img src="https://i.stack.imgur.com/y6ryG.jpg" alt="bad request"></p>
  
  <p><strong><em>here is the link to the actual page I want to render:</em></strong></p>
  
  <p><a href="http://www.facegift.co.il/canvas/?userItemId=17887&amp;sc=987404&amp;print=1&amp;width=4000&amp;pageNum=7" rel="nofollow noreferrer">http://www.facegift.co.il/canvas/?userItemId=17887&amp;sc=987404&amp;print=1&amp;width=4000&amp;pageNum=7</a></p>
  
  <p><strong><em>to call phantom I use:</em></strong></p>
  
  <p>phantomjs facegift.js 17887 987404 7 4000 2048.77 1 2335</p>