Added functionality to draw as you drag