public ImagePanel(Rectangle r)
	{
		Dimension size = new Dimension(800, 600);
		setPreferredSize(size);
		setMinimumSize(size);
		setMaximumSize(size);
		setSize(size);
		setLayout(null);
		
		firstPoint = new Point();
		
		addMouseMotionListener(this);
		addMouseListener(new MouseAdapter()
      {            
          public void mousePressed(MouseEvent e)
          {
			 	firstPoint.setLocation(e.getX(), e.getY());
          }
      });
	}