refactor legend icons