Aides and associates of the president say that he is dogged by insecurity over his loss of the popular vote and believes Democrats and the media are questioning the legitimacy of his presidency. On Tuesday, the president tweeted a photograph from the inauguration taken from an angle that accentuated the crowd and said he planned to hang the image in the press area of the White House.