fix Photo model