refactors labelled_icon method