After passengers check in for a flight, the airline tells CBP who is getting on. The passport or visa photos of all of the passengers on the plane, which are already in a database, are then pulled into a gallery.