Changed the viewphotos parameters used in the filtering function to use the visitor and app ids