- Refactor photos controller out of index.