Jim,
Good to hear that you were able to look away from that tempting imagery. I too struggle with that situation. Its there, right in front of me, and within the realm of its titillation level, it is over the top. And you looked away. That's great.
I have always felt a level of success if I acknowledged her (who ever) as a female, realize she is attractive, alluring, even down right sexy; then I look away. Its as if I am giving her the respect of not visualizing her as an object. Its OK that she is all of the things above. However, she is also a girl, a women, an individual, someones sister, mother, wife, friend. She is not responsible for my reaction. I handle myself with dignity and do not linger with my eyes or my mind.
Its not always easy but as I said; I feel success when the two second rule is applied effectively.
Peace