[0.2] Rewrite generate.js with canvas

Now, generate is very fast!
In past generate was 2-5 minutes. Now generate is 2-5 seconds!