How to automate icon generation?