Add unit tests to retrieve the attribute type icon from the factory.
Implement attribute type icon retrieval in attribute factory.
Change key in globals from icon to image to be compatible with old code.
Retrieve icon from factory instead from globals array.