Loading textures in a background thread