You upload a selfie, swipe through lipstick shades, pick a favorite and drop it in your cart. The try-on part takes seconds. Figuring out where that image of your face actually goes afterward can take a lot longer, and privacy law is still catching up with the virtual try-on tools now baked into beauty, eyewear and apparel shopping. These features have spread fast as artificial intelligence has gotten better at mapping faces and bodies.