[Engine] Added support for texture unloading and reuse.