Fix multi-selection of images in tree bug