determine image to return when get tree data