Clean up inverse_booleans for apply_affine_transforms()