Added the ability to specify the key to be used when caching images