HTML5 canvas capture in PhantomJS