Added retina support for unitSwitch