Fix setPhoto API Func