Move photo model to lib folder