improved the webgl image plugin