I've added a TemplateIcon extends Icon and now the code is better and cleaner