Great advice so far! Here's a few things that helped me in my life. First is to make sure you identify who your patron saint(s) are and get busy praying to them. The more saints you can tie into your life the better. Look up all saints whose feast days or birthdays correspond with your own:
1. Name
2. Birthday
3. Date of Baptism
4. Date of First Penance
5. Date of First Communion
6. Date of Confirmation
You get the idea. Use any and all excuses to identify with as many as you can find and speak to them as if they belonged to you and you to them.
One saint in particular had a major role in my victory over impurity and that was St. Thérèse of Lisieux or Saint Thérèse of the Child Jesus and the Holy Face, O.C.D. The reason I mention her connection to the Holy Face of Jesus is that in death, I firmly believe He granted the Church a miraculous image through her face.
If you compare the two photographs taken of her at her funeral, the one from the side looks more like a normal body in state:
While the other has an angelic expression of resplendent love for God:
I think it's miraculous anyway, and it never fails to move me. I think I speak for most men when I say that one look of joy or happiness from a beautiful woman is a reward in and of itself... usually to our detriment in this life and against all good sense besides... but a beautiful face like St. Therese in repose has more true love and kindness behind it than any other woman alive today (save Our Lady) because she was perfectly in the Love of God at the moment that photo was taken and God permitted it to shine through.
She is a reminder that all beauty properly belongs to God and as men we are meant to behold in wonder those things which the Lord has established. The greatest kind of beauty ought to lead us straight to God and that's what her face did and continues to do even in death. It's the kind of beauty that resists all attempts to obscure it with concupiscence. I'll pray for a miracle for you sir, but in return I ask that you change that horrible username! I appreciate your honesty, but let's aim for higher things. Talk to Matthew about changing it next time you get a chance.
Last but not least, use the Sign of the Cross often and as many times as an impure thought comes to mind. Imagine the Cross right in front of you protecting you from all attacks. Hide behind it often! Due to the nature of these kinds of temptations, we are often bombarded in places where we can't focus enough for spoken prayers or even mental prayers depending on the ferocity of the attacks. The Cross can keep pace with anything your own mind or the devil can throw at you. Take the Cross with you wherever you go.