adds affine-transformation and first try to correct back-warping