fix fetching photo model and set gallery