修正loadImg的onload触发顺序
Merge github.com:ottomao/drawingPad