Added method to reset the orientation to portrait. Added support of arm64