take multiple images
refactor