Fixed not using correct path key when caching image