update photo index