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