cleanup for Image.js WebGL support