Update sprite sheet caching so that it doesn't cache images without a sprite sheet.