Comment out some legacy code that is not used.
Refactor renderIconSelector to the standard CreateIconSelector name.

Create* = things that return HTML or strings.

Render* (or render*) = things that actually OUTPUT (echo or print) HTML or strings.