added --virtualization-type optional parameter which feeds into register-image awscli call at the end of the script