used WaitForImages()