confirm_dialog now accepts a background, instead of doing the screen capture hack.