The only known photographs of Ada Lovelace are being added to Britain's National Portrait Gallery after decades hidden from public view.