Handle icon generation.