Fix the ability to set custom category icons.

Hi. I discovered that your new custom category icon admin settings was a little broken and could be optimized. I'm sure you didn't finished yet it but if that may help you.