Added dragging for drawing