outsourced load_icon method