Dynamic Item Icons

How would I make dynamic item icons (So I don’t have to render a icon for each item when I add a new one)?