photo model save values fix