photo index now works