added more functions to canvas_wrapper