fix bug with adding patient with photo