edit photo update func