override method photos= for entities