move 2d transfom compatibility functions to dtcwt.compat