Refactor photo posts