He painted the White House portrait of President Monroe before much wider fame as an inventor in the 1840s
.... James 
Monroe Museum & Memorial Library (James Monroe Law Office) Fredericksburg, 
Virginia [DOC] [TLE] President James Madison, #4, painted by Gilbert Stuart in 1821 ... [PAR] Madison was our shortest President, standing only 5 feet, 4 inches tall.