fix ordering from images

get images by tree_position order