handle multiple images.