refactor photoSearch
refactor photoSelect