Modified Thumbnail adapter for multiple images.