Of course it was a dumb thing to do and their parents should take away their phones and driving privileges but it has nothing to do with the school and did not occur on school grounds. They have no business applying school sanctions and may face a civil action for doing so unless they can prove that the photo disrupted the orderly operation of the school.