Move ZProjector setup outside of loop
Convert image to 16-bit uint mode before saving
Turn off scaling for image type conversion