If you go to the
Creative Commons Choose page, you can easily enter the details of the image, how you like to license it, and how you want your badge to look! Nifty.
Here's an example of a badge for an "imaginary" image I compiled:
My Cactus by
Prickles is licensed under a
Creative Commons Attribution-NonCommercial 3.0 Unported License.
Easy!