A 50-photograph survey at the National Museum in Kraków explores past and present-day nationalism in the artist's homeland