If the image was exported, mention it in the close warning dialog. (cherry picked from commit 57d4680a)