Updated demo to show setAtlasIndex