Fixed intermittent build failures by looking for both image title selectors

cc @anitagraham