Quick coding question

I am working on a webpage currently and I have my visited, active links set to be a certain color. The problem though is when I set up hyper-linked images on the sidebar, the images have a red border around them in line with the page link attributes. What do I need to add to my image code, to break that connection? I don't want my hyper-linked images having that annoying colored-border around them.