To me when one masturbate and he is thinking of someone specific then he is paying a sort of tribute to the person that is in his thoughts while he is masturbating. He would not have thoughts of the person in his head if he didn't find her/him either attractive and/or desirable.