Change th canvas module

Now you can get the context of the canvas directly in your module.