cancel the drawing when cancel button is clicked