analyze the format of picture, and display it as a tree