add alghrithm for tree image