Added a wait for imaging a new ami