added basic file extension recognition to associate icon images