Nat Gertler, quite the enterprising fellow, has cracked the Amazon.com image code. In his article, he breaks down the makeup of the image source path from adding discount tags to rotating the image to placing text on top of the image.

Amazon image abuse example