Adds the logic for the collection images.