repainting the lines when dragging shapes