Geometric image transformation in the plane of the image {for image registration, e.g. elastic snapping using affine transformations}