@Override
	public void mouseReleased(MouseEvent e) {

		if(SwingUtilities.isLeftMouseButton(e)){
			control.setEndPoint(e.getPoint());// save ending coordinates
			g2=buf_image.createGraphics(); 
			control.drawShape(g2); // draw shape on canvas 
			this.repaint(); // refresh 
			control.addShapeObject(); // add shape information to array	
		}

		else if(SwingUtilities.isRightMouseButton(e)){

			if(temp!=null){
				// draw new dragged image and put into objects list 
				g2=buf_image.createGraphics(); 

				if(model.getShape_type().equalsIgnoreCase("square")){
					s_temp.setStarting_point(converted_start);
					s_temp.setEnding_point(converted_end);
					s_temp.drawSquare(g2);
				}
				else if (model.getShape_type().equalsIgnoreCase("circle")){
					c_temp.setStarting_point(converted_start);
					c_temp.setEnding_point(converted_end);
					c_temp.drawCircle(g2);
				}
				else if(model.getShape_type().equalsIgnoreCase("line")){
					l_temp.setStarting_point(converted_start);
					l_temp.setEnding_point(converted_end);
					l_temp.drawLine(g2);
				}
				this.repaint();
				control.addShapeObject();
			}// temp!
		}// move objects 
	}