Put the link before the picture, but before and after that link put the IMG code, which means before the link put '[' and ']' around IMG, and after the link put [/IMG].
I can't explain without it trying me to make the words a picture, so for example, hit the 'quote post' button and look at the code I have for the following picture:
