adds utility function to clear canvas