Who was responsible for imprisoning Li Ying