fix bug photo model