Syntax error from photo model fixed