test_gallery wait for image displayed

timing has changed and we need to wait for the image.