In this task, you're given passages that contain mentions of names of people, places, or things. Some of these mentions refer to the same person, place, or thing. Your job is to write questions that evaluate one's understanding of such references. Good questions are expected to link pronouns (she, her, him, his, their, etc.) or other mentions to people, places, or things to which they may refer. Do not ask questions that can be answered correctly without understanding the paragraph or having multiple answers. Avoid questions that do not link phrases referring to the same entity. For each of your questions, the answer should be one or more phrases in the paragraph, and it should be unambiguous.
Q: Passage: Like other Spanish liberals, Goya was left in a difficult position after the French invasion. He had supported the initial aims of the French Revolution, and hoped its ideals would help liberate Spain from feudalism to become a secular, democratic political system. There were two conflicts being fought in Spain: the resistance against the French threat, and a domestic struggle between the ideals of liberal modernisation and the pre-political incumbent ruling class. The latter divide became more pronounced—and the differences far more entrenched—following the eventual withdrawal of the French.Several of Goya's friends, including the poets Juan Meléndez Valdés and Leandro Fernández de Moratín, were overt afrancesados: the supporters (or collaborators, in the view of many) of Joseph Bonaparte. He maintained his position as court painter, for which an oath of loyalty to Joseph was necessary. However, Goya had an instinctive dislike of authority, and witnessed first-hand the subjugation of his countrymen by French troops. During these years he painted little aside from portraits of figures from all parties, including an allegorical painting of Joseph Bonaparte in 1810, Wellington from 1812 to 1814, and French and Spanish generals. Meanwhile, Goya was working on drawings that would form the basis for The Disasters of War. He visited many battle sites around Madrid to witness the Spanish resistance. The final plates are testament to what he described as "el desmembramiento d'España"—the dismemberment of Spain.
A:
What is the name of the person that maintained his position as court painter?