use all cpus in image resizing