fixed small bugs, added dynamic canvas resize
Merge pull request #47 from alangster/canvas-refining

fixed small bugs, added dynamic canvas resize