public void mouseReleased(MouseEvent e) {
        //mouse_x=0;
        //mouse_y=0;
        mDragged=false;
        markerRect.stopDraw();
        if(markerRect!=null){
        markerRect.cleanUp();}
        
        if(e.isControlDown()){
        	MapGetter.setGoogleMarkers(markerRect);
        	 MapGetter.getMapImage(MapGetter.createUrl(0, 0));
        }
      /*  else if(((markerRect.isSelectedWidth())||markerRect.isSelectedHeight())||(markerRect.isSelectedDrag()))
        {
            //int index = markerRect.getSelectedIndex();
            //if(index!=-1){
            //MainView.setPoint(index,markerArray.getLongtitude(),markerArray.getLatitude());}
            //}
        }*/
        else
        {
        imageVX=0;
        imageVY=0;
        mouseX=e.getX();
        mouseY=e.getY();
        MapGetter.getMapImage(MapGetter.createUrl(mouseStartX-mouseX,mouseY-mouseStartY));
        System.out.println("Roznica X:"+Integer.toString(mouseStartX-mouseX));
        System.out.println("Roznica Y:"+Integer.toString(mouseY-mouseStartY));
       
        //mouse_x=0;
        //mouse_y=0;
        }
        

        repaint();
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }