Aligning, centring, orientation detection or correction of the image {by compensating for image skew or non-uniform image deformations}