add dialog for selecting reference image