#64 move icon creation function outside of constructor