Rect cutting implemented