Update setPhoto API Func