Setting up the canvas environment