[Olena-patches] milena r1377: Add a function which transform a tree into an image in sandbox