Pioneering history painter, innovative portraitist and one of two women among the founders of the Royal Academy.