Updated simple_graphics to be compatible with the canvas