fix mask transform to apply after segment transform and be aware that offsets are in table-relative base coords