Implemented resizing of freehand shapes.