test_gallery wait for image displayed