Fixed light function to retrieve images and added tag value to segmentations.