Update constructtransforms.m