"Courage is simply a lack of imagination."

What is the origin of the phrase "Courage is simply a lack of imagination."?

"Cowardice, as distinguished from panic, is almost always simply a lack of ability to suspend the functioning of the imagination."

-Ernest Hemingway