restore opencv-based code path in affine_transform
restore opencv-based code path in affine_transform

This was inadvertently removed in gh-3166

fix mode opencv for rotate and shift as well

cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy