You can enter a link in the description field for an image (see Description? when editing an image).
If you want the action to happen when someone clicks on an image, you'll have to create a custom theme.
If you want the action to happen when someone clicks on an image, you'll have to create a custom theme.