National Portrait Gallery closes out 50-year anniversary celebration after widening the view to include more women, diverse backgrounds and emerging media