get user photos by profile id or profile link