Similarity invariant energy minimising deformation for iOS