create_canvas function

Create a canvas of the specified type