Section 76 of the Counter Terrorism Act, the key point is whether the photo is "likely to be useful to a person committing or preparing an act of terrorism".
http://tinyurl.com/crd9mp
http://tinyurl.com/bzg7qu