Preloading textures into memory