Pass hash and extension to the photo templates for plugins that require
links we can't construct from what's already there.