Painting history was an effort and an illusion typical for the 19th century. The effort was to construct something like national myths to help a process which is now called "nation building".
But the great illusion was, that history could be paintable.
Washington Crossing the Delaware, 1851
Painting from Emanuel Gottlieb Leutze, American, 1816-1868