The code looks correct. You might have javascript on the page that is automatically displaying images that are linked? If you give me a url where I can view the problem I may be able to tell you more. It doesn't appear to be an issue with what you are doing in the CMS or the code it produces.