Wait for image creation and deletion to finish