Drawing can also be ended by calling disableEditing();
Lines added: