Implemented Affine Transformations. Fixes #5