A photo of a New York City police officer kneeling down to give a barefoot homeless man in Times Square a pair of boots on a cold November night is melting even the iciest New Yorkers' hearts online.

On Nov. 14, NYPD officer Lawrence DePrimo, who was on counterterrorism duty in Times Square, saw the older homeless man without shoes sitting on 42nd Street. DePrimo, 25, left and then returned with a pair of $100 boots he bought at a nearby Skechers store.

"It was freezing out, and you could see the blisters on the man's feet," DePrimo, a three-year veteran of the department who lives with his parents on Long Island, told the New York Times. "I had two pairs of socks, and I was still cold."

The random act of kindness was captured by Jennifer Foster, a tourist from Florence, Ariz., who was visiting the city. Foster, communications director for the Pinal County Sheriff's Office in Arizona, emailed the photo to the NYPD with a note commending DePrimo.

"The officer said, 'I have these size 12 boots for you, they are all-weather. Let's put them on and take care of you,'" Foster wrote. "The officer squatted down on the ground and proceeded to put socks and the new boots on this man.

"I have been in law enforcement for 17 years," she continued. "I was never so impressed in my life. ... It is important, I think, for all of us to remember the real reason we are in this line of work. The reminder this officer gave to our profession in his presentation of human kindness has not been lost."

Foster's photo was posted on the NYPD's Facebook page on Tuesday, where it received more than 320,000 "likes," 77,000 "shares" and 20,000 comments—most of them praising DePrimo, who seems to have restored Facebook's faith in humanity.

The homeless man who was photographed being given a pair of boots by a New York City police officer in Times Square on a bitterly cold night last month was spotted on the Upper West Side on Sunday. And he was once again barefoot.

"Those shoes are hidden," Jeffrey Hillman, the 54-year-old homeless man, told the New York Times. "They are worth a lot of money—I could lose my life."

"I appreciate what the officer did, don't get me wrong," Hillman added. "I wish there were more people like him in the world."