technique – Best approach for creating the average of multiple profile photos?

We’ve all seen profile photos that are a mix of hundreds, or thousands of profile photos. Here’s examples:

All examples that I’ve seen were made by an artist/photographer, who took the individual photos themselves, allowing for the most optimal alignment between individual photos.

With image recognition having taken huge leaps since this technique was first developed, is there software out there that can identify faces in individual photos, and then use those to superimpose them onto each other?