get photo index