refactor voxel avatar generation