Use the module to draw a static image.

Use the module to draw an animated image which works by looping over the drawing function.

The element passed is also returned with a draw event that can be used to manually redraw the canvas.