The portrait in question was donated in 1952, on the 100th anniversary of Lee becoming the superintendent at West Point. There already existed a portrait of Lee as he appeared as superintendent (in his US Army uniform), so you know exactly why this one was given to the Academy.