Wait for image to become available before breaking test