Photographer spent months waiting for museum visitors to match the artworks they observe