Added code to filter requests for photos.