use <canvas> to draw,fix #3