Changed how the reference image was selected