Three teenage boys have been arrested and accused of taking inappropriate photos of their teacher, according to Alexandria police. They were charged and released to their guardians, police said.

The incident happened in May at T.C. Williams High School, according to search warrants filed in Alexandria Circuit Court.

According to affidavits, one student told police that when he walked into his second-period class May 15, several students started encouraging him — chanting, “Photo, photo, photo” — to take a picture of the teacher. He used his phone to take a picture of her from behind. He also received a photo on his phone that had been taken up the teacher’s skirt, he said.

A second student told police that during the same class, he held his phone under the teacher’s skirt and took a video, according to the warrants.

The video did not come out, he said, and he deleted it immediately. He said he handed his phone to a third student who took two photos up the teacher’s skirt. A witness recalled seeing the third student take an upskirt photo and being urged by him to do the same. The witness reported the incident to Dean Rene Cadogan.

One 17-year-old is charged with distributing obscene material, while another 17-year-old and a 15-year-old were charged with unlawful photography.

Upskirt photos were explicitly outlawed by Virginia legislators in 2005 after prosecutors were unable to charge a man who used a video camera to look up teenage girls’ skirts at a Norfolk mall with anything more than disorderly conduct.

Another T.C. Williams 18-year-old student was arrested earlier this month after a similar incident; according to an affidavit, he admitted to taking a photo up the skirt of another teacher at the school.

Get updates on your area delivered via e-mail