TextureCache: add support for loading themed textures
When a themed texture is requested, we add it to a list so that we can invalidate it on theme changes.
Use themed textures in any case we load local files, falling back to the default path if theme doesn't provide any customized asset. Fixes: #903179, #1208790 Approved by: Andrea Azzarone