LOS ANGELES (CBSLA) — Pomona City Councilman Rubio Ramiro Gonzalez pleaded not guilty Friday to five criminal counts, including possessing child pornography.

Gonzalez, 45, was accused of taking inappropriate pictures of female students at two elementary schools where he was a substitute teacher.

READ MORE: CHP Motorcycle Officer Involved In Traffic Collision On Eastbound 105 Freeway At Bellflower Boulevard

Rubio Ramiro Gonzalez, 45, was charged with possessing child pornography, including four other criminal counts. (Credit: City Council website)

He was ordered not to have any unsupervised time with minors or participate in any teaching activities, along with being subject to search and seizure conditions involving any device capable of being connected to the internet.

Gonzalez was arrested on May 21 and was released later that day on bond, jail records show.

Gonzalez was charged June 24 with one felony count of possessing child pornography and four misdemeanor counts of annoying or molesting a child.

READ MORE: First Weekend Eligible Adults Can Receive Pfizer's COVID-19 Booster Shot In Los Angeles County

He is accused of taking inappropriate pictures at Cortez and Arroyo elementary schools in Pomona.

The Los Angeles County District Attorney’s Office said he also allegedly had child pornography images in his email accounts.

The Daily Bulletin reported that Pomona Mayor Tim Sandoval called on Gonzalez to resign from office and that the City Council voted unanimously in favor of censuring the councilman following his arrest.

If convicted, Gonzalez faces up to seven years behind bars.

MORE NEWS: Man Shot And Killed By Huntington Police Saturday As Nearby Crowds Watched U.S. Open Of Surfing

(© Copyright 2020 CBS Broadcasting Inc. All Rights Reserved. City News Service contributed to this report.)