@Override
        public void mouseReleased(MouseEvent e) {

        	try {
        		if (renderingColor.equals(Color.GREEN)) {
        			System.out.println(
	        			inputImage.getContentOfSelectionAsBlock(
	        					mouseRect.x, mouseRect.y,
	        					mouseRect.height, mouseRect.width));
        		} else if (renderingColor.equals(Color.RED)) {
        			System.out.println(
    	        			inputImage.getContentOfSelectionAsImageBlock(
    	        					mouseRect.x, mouseRect.y,
    	        					mouseRect.height, mouseRect.width));
        		} else {
        			System.out.println(
    	        			inputImage.getContentOfSelectionAsPageNumberBlock(
    	        					mouseRect.x, mouseRect.y,
    	        					mouseRect.height, mouseRect.width));
        		}
        	} catch (DoenstFitException ex) {
        		//Error handling code here
        	} catch (BadPageNumber pn) {
        		
        	}

            selecting = false;
            mouseRect.setBounds(0, 0, 0, 0);

            e.getComponent().repaint();
        }