The Liaoyang Temple was originally built for the Ming Emperor and the royal family to worship their ancestors