A teenage boy has been prosecuted for having nude pictures of himself on his mobile phone, The Guardian reports.

Cormega Copening, of Fayettesville, North Carolina, was reportedly prosecuted as an adult under child pornography laws for sexually exploiting a minor – himself.

The young man, who is now 17 but was 16 at the time the photos were discovered, had to strike a plea deal to avoid potentially going to jail and being registered as a sex offender.

Copening was suspended as quarterback of his high school football team while the case was being resolved.

He was charged with four counts of making and possessing images of himself and one count of possessing a naked image of his 16-year-old girlfriend.

Brianna Denson, his girlfriend, also took a plea deal after being prosecuted on similar charges for having naked, suggestive images of herself on her phone.

While the pictures were technically illegal, actual sex between the two teens would not have been, according to the Fayettesville Observer. The legal age of consent for sexual intercourse in North Carolina is 16.

The pictures were discovered on Copening’s phone when authorities investigated a wider problem of sexual images allegedly being shared at school without permission of those involved. It turned out he was not involved in the case.

He was prosecuted for having his own and his girlfriend’s image, despite not sharing them further.