title: phantomJS webpage timeout
body: <p>I have set up a script to create webshots of our app. 
  It runs perfectly and all is fine Until I encounter an image with a broken url :</p>
  
  <pre><code> "&lt;img src='http://testserver.our.intranet/fetch/image/373e8fd2339696e2feeb680b765d626e' /&gt;"
  </code></pre>
  
  <p>I have managed to break the script after 6 seconds using the below, Before it was just looping forever.</p>
  
  <p>But, is it possible to ignore the network request (<code>AKA</code> take the image out of <code>DOM</code>) and then proceed to create the thumb without the image, (or with an injected image missing image !)</p>
  
  <pre><code>var page = require('webpage').create(),
      system = require('system'),
      address, output, size;
  
  if (system.args.length &lt; 3 || system.args.length &gt; 5) {
      phantom.exit(1);
  } else {
      address = system.args[1];
      output  = system.args[2];
      page.viewportSize = { width: 640, height: 640 };
      page.zoomFactor = 0.75;
      page.clipRect = { top: 10, left: 0, width: 640, height: 490 };
      try{
          page.open(address, function (status) {
              if (status !== 'success') {
                  console.log('Unable to load the address!');
                  phantom.exit();
              } else {
                  window.setTimeout(function () {
                      page.render(output);
                      phantom.exit();
                  }, 200);
              }
          });    
      } finally{
          setTimeout(function() {
              console.log("Max execution time " + Math.round(6000) + " seconds exceeded");
              phantom.exit(1);
          }, 6000);
      }
  }
  </code></pre>