BANGOR — A Bangor man has been ordered held on $100,000 bail after pleading not guilty to sex charges involving a 7-year-old boy.

Terrence Pinkham is charged with five counts of gross sexual contact and two counts of sexual exploitation of a minor.

Police began an investigation after an electronic photo of a sexual assault involving a child was sent to Brewer police.

Brewer police Detective Sgt. Jay Munson said last month that Pinkham and a woman “created child porn,” but did not distribute images over the Internet.

The Bangor Daily News reports that the woman, Katie Dube of Glenburn, faces the same charges and is scheduled to be arraigned next month. She is being held on $50,000 bail.

If convicted, both face up to 30 years in prison.