Added the option to clear the canvas image