I was able to solve this issue by doing the following steps before capturing the image.
- Delete c:\windows\system32\sysprep\sysprep_unattend.xml
- Edit c:\windows\setup\scripts\setupcomplete.cmd file to remove Reboot command by removing the last line in the script “shutdown /f /r /t 10”