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