Photos are queried at end of run OR onclick, whichever comes first