I played it in the browser, so I didn't get to see that, but usually when games mysteriously seem to know your name, they take it from your user profile in your PC.
I think it might be a generic face that flashes just long enough for people to interpret as their own? I played it in the browser, to the site should have had to be granted access in order to use a photo from my library, or the camera.