improve Photo model