added very simple texture cache using NSCache, added format and mipmaps property to SPTexture

textures will removed from the cache under memory constraints
automatically