The emperor slept soundly in the knowledge that he was protected by these two generals, and had no further dreams of the ghosts. However, after a few nights the emperor became concerned for the generals. He ordered that two paintings be made, one of each general. Once completed, the emperor had these hung on the door to his room, and relieved the generals.
This tale soon became widely known, and in their eagerness to share the protection of these "Door Gods" the common people made their own paintings and placed them on their doors. the tradition has continued ever since.