Seems we lost m_defaultIcon with the change the other day - my bad, I missed that.

The code to store m_defaultIcon in OnWindowLoaded() needs restoring, then in this block set strTypeImage = m_defaultIcon where you have the log currently.