I took pictures of some of my students when, in my opinion, it was safe for me to do so. I taught them how to swim, taught them their skills sets, have watched them practice from day one, and know them underwater better than they do.
At the end of their checkout dive, if they asked me to, I would have no problem with it.