refactor method getIcon to getIconURL