new target_shape and affine