Added upload of images for leaf nodes