Canvas functions for working with canvas.