We tell our DD's the truth regarding photos:
That if BF saw photos then although unlikely he could cause aggravation that we could do without.
If BM saw photos she could be upset, and 'well meaning friends' might encourage her to come to our area, which would not be in anyone's best interest.
(Background, the birth family are not too far away, so some local papers cover their area as well as ours).
Our school is actually very good with photos, as they have other children who aren't allowed in papers etc. e.g. Nativity, they sent 4 children back with a TA first, then quickly took a few photos. DD2 has been brought up 'knowing' she can't be papers and accepts it.
DD1 has been upset a few times when not allowed to do things due to pictures (especially she would have liked to be a carnival princess), but generally it's OK.
Things may change, as we are considering introducing some face to face contact. In which case I think we'd lift restriction on photos as BM would know where we live. (Can't imagine doing face to face without this info being shared).