Refactored the icon dictionary's initialization

This also reformats the file.