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

textures will automatically removed from the cache under memory
constraints