A Casper man will avoid prison time after he admitted that he tried to force an under-aged girl into having sex with him, by threatening to release inappropriate photos of her.

Twenty-six year old Nathan Porter was given a four-to-six year suspended prison sentence, with four years of probation, after he pleaded guilty to one charge of blackmail.

Investigators with the Casper Police Department say in January 2015, the victim told them that a man was trying to extort money from her.

The girl had been texting with Porter and at one point sent him a topless photo.

Porter responded that he would pay $50 to have sex with her or a friend of hers.

If she didn’t comply, he would post the photo on Facebook.

Police then set up a sting and arrested Porter, who later confessed to the deed.