improve canvas draw performance by using WebGL