Make pattern loading work on IE10.
Attaching patterns to a display:none div in the DOM was causing IE10 to set the image width to 0,
preventing us from drawing it onto the canvas.