Exhibition rounds up more than a century of art showing and condemning racial violence