Fix duplication of images in listimages