ticket:14 fixed bug with photo updating