Thread:JoePlay/@comment-5578690-20140625175340/@comment-171752-20140626205729

Now I'm confused. In your first comment of this thread, you said when an option (copyright license) is chosen to do a look up of that license image and to insert that image file into the cell. I interpreted that as: input an option and display an image based on that input. If you just want to display the licensing for an image, four of those licenses you listed already have their own templates by default. So for the license input parameter on the infobox, you could just enter  and it would display the contents of Template:PD.
 * Template:PD
 * Template:Fairuse
 * Template:Permission
 * Template:CC-BY-SA

For those other CC licenses that don't have a template, you can easily create them by copying the content of Template:CC-BY-SA and editing the link inside it to link to the proper page for that license.