A elephant is standing with its face on a tree.
an elephant is scratching his head on a tree
An elephant is sharpening it's tusks on a tree.
An elephant pushing up against a tree trunk.
The elephant is rubbing up against that tree.