fix bug with adding patient with photo
fix patient photo retrieval bug