Basic init function to setup the canvas