Added functions to search for photos and collect all associated information.