implement "images -tree"