The National Portrait Gallery purchased an 1846 daguerreotype of Dolley Madison for $456,000