Jonathon Ellis. Courtesy of LAPD.

A Long Beach resident physician pleaded no contest today to a felony count of sending pornographic images to an undercover police detective posing as a teenage girl.

Jonathon Hagar Ellis, 35, of Long Beach, was ordered to serve 90 days in jail, register for life as a sex offender and undergo at least 52 weeks of sex offender counseling, according to Deputy District Attorney Angela Brunson.

Four other charges against him were dismissed as a result of his plea.

Ellis sent lewd photos of himself in January to an undercover Los Angeles Police Department detective who was posing online as a 16-year-old girl, according to the District Attorney’s Office.

Details about where he practices medicine were not immediately available.