Twitter uses a zio company to run the verification tool and guess where the information is leaking and guess where your photo is going as well, which they can then cross reference with government data of your country that they probably already have if you live in any western country since they control everything there.