Adding function for clearing the canvas