update affine transform