Automated and accurate orientation of complex image sequences