Added simple affine transformations.