Diffeomorphisms and orthonormal frames