wait for image acquisition