update index, add photos to image