Sir John Baptist Medina, born in Brussels to Spanish parents, had died just before the Union took place, and was one of the last batch of Scottish knights to be created. Medina had first worked in London, but in mid-career moved to the less competitive environment of Edinburgh, where he dominated portraiture of the Scottish elite. However, after the Union the movement was to be all in the other direction, and Scottish aristocrats resigned themselves to paying more to have their portraits painted in London, even if by Scottish painters such as Medina's pupil William Aikman, who moved down in 1723, or Allan Ramsay. There was an alternative, more direct, tradition in British portraiture to that of Lely and Kneller, tracing back to William Dobson and the German or Dutch Gerard Soest, who trained John Riley, to whom only a few works are firmly attributed and who in turn trained Jonathan Richardson, a fine artist who trained Thomas Hudson who trained Joshua Reynolds and Joseph Wright of Derby. Richardson also trained the most notable Irish portraitist of the period, Charles Jervas who enjoyed social and financial success in London despite his clear limitations as an artist. An exception to the dominance of the "lower genres" of painting was Sir James Thornhill (1675/76–1734) who was the first and last significant English painter of huge Baroque allegorical decorative schemes, and the first native painter to be knighted. His best-known work is at Greenwich Hospital, Blenheim Palace and the cupola of Saint Paul's Cathedral, London. His drawings show a taste for strongly drawn realism in the direction his son-in-law William Hogarth was to pursue, but this is largely overridden in the finished works, and for Greenwich he took to heart his careful list of "Objections that will arise from the plain representation of the King's landing as it was in fact and in the modern way and dress" and painted a conventional Baroque glorification. Like Hogarth, he played the nationalist card in promoting himself, and eventually beat Sebastiano Ricci to enough commissions that in 1716 he and his team retreated to France, Giovanni Antonio Pellegrini having already left in 1713. Once the other leading foreign painters of allegoric schemes, Antonio Verrio and Louis Laguerre, had died in 1707 and 1721 respectively, Thornhill had the field to himself, although by the end of his life commissions for grand schemes had dried up from changes