Fix setPhoto API Func & Dependence libraries