implemented resizing line and arrows