The rapid uptake of facial recognition technology is unsettling, but how does it work, and can it be fooled?