fix ImageOptim.m initialize()

ImageOptim.m initialize() is currently called twice on app init. 

This patch ensures reg defaults, migrate old defaults and numberOfCPUs are only called once.