Clearing canvas while drawing