updated batch to use affine tform