My Dad used to this, I got Bell's palsy when I was 12 and hated having photos taken because of my droopy face. I'd be anxious when I saw people get a camera out, but everyone respected it and could probably see and understand why I didn't want to be in photos.
My Dad didn't though, everytime he wanted his stupid fucking "family" photo and I'd insisted I'm not posing he called me a drama queen, silly, making a fuss etc. As I got older I stood my ground but he'd just take surprise photos when I was just doing whatever. It was just one of many ways he'd show that his wants are priority and he'd act like getting a photo of me was some kind of victory and gloat and gloat. If Facebook were around he'd have uploaded against my wishes too.
I know these kind of photos can be good for private family albums, i really do, But if the subject didn't want that picture taken and it's upset them, flicking through the family album will be a reminder of the time their Dad was a twat. After my Dads death stepmum got the albums out and she'd talk about how great that day was and I'd look at my 12 year old self in the picture holding back tears, getting frustrated at being told to smile properly (couldn't smile due to Bell's palsy).
Dd sometimes is happy for her photo to be taken, sometimes she's not, sometimes one will be taken at an event and while she's okay with the occasional surprise ohoto, she often asks for them to be deleted as she doesn't like it, she's respected and it's deleted. I wouldn't want to look back at a photo that I know would upset dd if she knew I'd kept it or taken it when she'd said no.
We teach dd that when she says no, it should be listened to, and that if something doesn't feel right it's ok for her to say so and someone saying they are rude or making a fuss or getting angry with her when it comes to choices about her own body are demonstrating their wants are the most important.
It's given her the confidence to stand her ground when the occasional uncle says she's being mean for not wanting a selfie and asking why his desire for a photo is more important than her choices etc.