ThumbnailCopy adds a right-click entry to "Copy Image As Link" for images that are links. It then copies HTML to the clipboard that is suitable for posting in a blog post, etc. Here's the official addon page where you can install it.
About this project: This is a very simple Firefox extension for a very specific purpose. It's also the first one I've ever written!
Interesting source files: