Use the built-in SpriteSymbol: r.register(id, SpriteSymbol, { textures }) maps each id to a Texture.See it workRecipe: Texture-atlas symbols