What one does with one’s mind is as important as what one does with one’s body. Mind leads and the body follows in such matters. So one has to gain control over the thoughts. Then ultimately these impressions of attachment come and go with no fertile ground in which to take hold. Gain control over the mind.