Check the icon size when checking the installed root

Also, use 4 new private enums to get rid of some magic values in the codebase.