In an attempt to resolve WB-474, Capture Image loses overlay in resulting capture: Added a call to repaint() immediately before calling captureImage() to ensure the frame buffer is updated.