correctly indexes multiple images
work in progress