Add --threads option to imagex-optimize