I don’t think they use a ai program for that, they probably just have a dataset with the pictures. Might even be a dataset for training ai.
The picture in question was from the AIDS Quilt when it was displayed in Washington D.C. in the 90s. So not even a very old picture


If you use uBlock Origin, you can go into the settings under filter list and activate all lists in Cookie Notice, Socials and Annoyances. Makes the web much better.