added very simple texture cache using nscache, textures will automatically removed under memory constraints