Gravar e-mail: Image distortion correction method based on geometric features