I would like to share with you something I do when a negative thought /image enters my mind, it's rather simplistic, but for me it seems to work. When a negative image or thought comes into to my mind, I recognize it for what it is, and feel it is some negative aspect of my thinking, I mentally say to myself, that is not me, or who I am. I visualize a giant eraser and erase the image/ thought from my mind.
I should have stated that this works for me if intrusive thoughts/images are involved. If a negative reaction to thoughts and remembrance from interactions with family members, friends, acquaintances or memories of past situations emerge in our minds, the emotions surrounding such memories would need to be reflected on IMO.
It could indicate some past emotional trauma that needs attention.