MIAMI (CBS4) – Cuban painter Agustin Bejarano accused of sexually molesting a 5-year-old Hialeah boy has accepted a plea deal from prosecutors.

In exchange entering a plea of guilty, Bejarano was given three and a half years in prison and ten years probation.  However, he was given credit for the 18 months he’s been in jail, so he will serve two years in prison. After his release the court will decide if he should be deported to Cuba.

READ MORE: Regulators Weigh FPL Rate Hike

Bejarano, who lives in Havana, was arrested after he molested the young son of a Hialeah couple he was visiting in March 2011. At the time of his arrest, Bejarano was in Miami on a one-month visa to attend the art fair “Art of the Americas” at the Miami Beach Convention Center.

READ MORE: Tracking The Tropics: Tropical Storm Peter Passing Near The Eastern Caribbean

If he had gone to trial and been convicted, Bejarano could have been sentenced to life in prison.

MORE NEWS: One Dead, One Injured After Being Shot Near FTX Arena

Bejarano’s paintings have been exhibited at Cuba’s National Museum of Fine Arts and at galleries in the U.S., Switzerland, Mexico and Canada.