A former Shepherd Air Force Base airman pleaded guilty Friday to 25 counts of possession of child pornography in 30th District Court, court records showed.

Joel Lavelle Calahan, 39, was sentenced to eight years in prison for possession of lewd images of children, according to court records.

Judge Jeff McKnight handed down an eight-year sentence for each count Friday in a plea bargain, court records showed. Calahan will serve the sentences concurrently.

Possession of child pornography is a third-degree felony punishable by up to 10 years in prison.

McKnight also ordered Calahan to pay $10,400 in court costs and allowed him 132 days jail credit, court records showed. Calahan must also register as a sex offender.

He was still being held Friday night in Wichita County Jail, according to online jail records.

More:Man arrested at SAFB on child porn charges

Calahan was a staff sergeant at the time of his first arrest Oct. 5, 2017, according to the Stars and Stripes.

Besides identifying Calahan's rank in the Air Force, the independent news organization covering the military also published an undated file photo online of Calahan speaking to a little boy at a children's event at Dyess Air Force Base in Abilene.

Upon his first arrest, Calahan was charged with five counts of possession of child pornography, according to a previous Times Record News story.

Calahan bailed out of jail on $50,000 in bonds the day after his 2017 arrest, according to the previous TRN story.

More:Report: Man arrested and charged with several counts of possession of child pornography

He was living in Fresno, California, when he was arrested again April 30, 2019, and charged with 20 additional counts of possession of child pornography, according to a previous Times Record News story and online jail records.

Calahan was held in Wichita County Jail on $500,000 total bonds up to his sentencing Friday.

Arrest warrant affidavits gave this account: The Wichita Falls Police Department's Crimes Against Children Unit were called out May 28, 2016, to investigate a report of child pornography.

The reporting person had seen images on Calahan's computer that appeared to be of children.

Investigators obtained a search warrant for Calahan's residence and executed it later the same day.

They collected many digital storage devices and sent them off for forensic analysis. An ongoing analysis of the data revealed thousands of images.

They included images of children under 18 years old in various stages of undress with their genitalia exposed in "a lewd and lascivious manner."

The first five charges against Calahan stemmed from images each depicting a completely nude prepubescent girl around 7 to 10 years old.

The additional 20 charges were related to images of nude or exposed female children between toddler age to 13.