text and images are leaves