Add photo model

It closes #46