added affine transformations
added naive soft iron correction