// STAMP
if (mouseButton == MouseEvent.BUTTON3 && layer instanceof TileLayer) {
// Right mouse button dragged: create and set custom brush
TileLayer brushLayer = new TileLayer(bounds);
brushLayer.copyFrom(getCurrentLayer());
brushLayer.setOffset(tile.x - (int) bounds.getWidth() / 2, tile.y - (int) bounds.getHeight() / 2);
// Do a quick check to make sure the selection is not empty
if (brushLayer.isEmpty()) {
JOptionPane.showMessageDialog(appFrame, Resources.getString("dialog.selection.empty"),