HTML5 fix of textures output