g2d.translate(bounds.x - 1, bounds.y - 1);
g2d.drawRect(0, 0, bounds.width, bounds.height);
g2d.dispose();
// Send this to the clipboard
Transferable imageTransferable = new ImageTransferable(newImage);
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(imageTransferable, null);
// For platforms which have a selection clipboard (such as X11), store the image there also
clipboard = Toolkit.getDefaultToolkit().getSystemSelection();