Who did the Byzantine Emperors pledge allegiance to