Improved Image Representation Using Tree-Like Structures