update photos and index