A Virginia high school student allegedly recorded other male students in a school bathroom, according to police.

Phatsakorn Pongpasit, 20, of Fairfax, was arrested Tuesday and charged with possession of child pornography and unlawful creation of image of another, Fairfax police said Friday.

Pongpasit is a senior at Fairfax High School, where a school resource officer received a complaint from school administration that Pongpoasit secretly recorded other students in bathroom stalls Thursday, police said.

A student reported the incident to school staff Thursday morning, according to a letter sent to parents of Fairfax High School students.

"There was a complaint from a student that had believed he was filmed while he was using the restroom or attempting to change in the restroom stall," Fairfax Police Sgt. Natalie Hinesley said.

Cases like this are becoming more common, police said. Teens take and send inappropriate images of each other with their phones, not realizing that in most cases, it's a crime.

"So we've tried to get the word out, teaching within the schools to let the students know that most of these offenses are felony offenses," Heinsley said.

"Our security and administrative teams responded immediately and their outstanding investigative work confirmed the student’s report," the letter read. "As the incident involved a violation of the law as well as school rules, we notified the police. While we do not generally discuss individual students or their decision making, the violating student is of adult age and the police department reports crimes committed by adults."

Pongpoasit was released from jail Friday morning, according to the sheriff's office. He is scheduled to appear in court Aug. 16.