Fix weird image / text resizing bug

Some weirdness due to webkit 3d compositing layers. This is a bodge to get it to work, should investigate further, perhaps file a WebKit issue.