And repeated behavior reinforces the attraction, adds fuel to the fire so to speak. Here's an example - the mind (which basically just replays everything you've ever put it in, including all the movies watched, etc) comes up with a thought - an attraction, if you will. If you "entertain" the thought - the desire - meditate on it - read articles about it - look at pictures about it - go to chat rooms about it - etc etc - and then ACT on it - that's one path. Another path is this - the thought enters the mind, and you tell that thought - Get the F**k out of here! That's disgusting! And you don't focus on it, drool over it, etc or act on it.
Everyone's minds are full of all kinds of weird passing thoughts that they don't act on. That's called being a human being, instead of an animal.
There's a mistaken belief that if we don't act on our desires they will get stronger and stronger, so we have to "do" them to get them out of our system. The reverse is actually true - most desires will get weaker and weaker if we ignore them (especially unhealthy, abnormal or harmful ones, not normal ones like wanting to eat when you're stomach is empty). By ignoring a sick/unhleathy desire its power in the mind diminishes more and more and finally goes away when not acted upon or meditated upon.
This truth deserves to be repeated. Every habit, even sexual perversion, can be broken.