construct the canvas (global frame buffer)

check to see why the canvas pointer is not working