Photo templating

Might want to refactor this into a function