while True:
    img.initialize()
    img.waitNext(10000)
    time.sleep(2.0)