UED auto orientation matching and diffraction pattern processing