builder: Use common code to sysprep, sparsify and compress images.