affine.py

x is an image.
t is an angle in radians.