God can set you free from having perverted thoughts and doing perverted things. All you have to do is seek Him and aak Him to set you free from being this way. Really He doesnt want us to be perverts so He would be happy to change your mind and give you a new one. God did this for me when i repented of my sins and asked Him to fodgive me. I also asked Him to diliver me from being a porn addict and He did. I went from watching porn sometimes 8 times a day to now not watching it at all because when God saves you He puts His Spirit in you and it takes away all your old corruptable desires and makes you new all over again having all your old desires washed away no longer in you. I know this is the truth because it happened to me and i use to be a huge perv so if God will do this to me he will do this to you
1 corinthians 6
9 Know ye not that the unrighteous shall not inherit the kingdom of God? Be not deceived: neither fornicators, nor idolaters, nor adulterers, nor effeminate, nor abusers of themselves with mankind,
10 Nor thieves, nor covetous, nor drunkards, nor revilers, nor extortioners, shall inherit the kingdom of God.
11 And such were some of you: but ye are washed, but ye are sanctified, but ye are justified in the name of the Lord Jesus, and by the Spirit of our God.
17 Therefore if any man be in Christ, he is a new creature: old things are passed away; behold, all things are become new