Clarified code of getting icons of components.