I was playing around with the macros source and wanted to create a custom control element,
the result is this module. It adds an element which shows the icon of any item in the game.
You can enter either directly the name or just set it to a variable like
Version 1.0.0 for mc version 1.8 / API version 17