@Override
			public void actionPerformed(ActionEvent e) {
				saveDialog(); // open file saver 
				if(file==null) //if user did not enter any file name warn him
					JOptionPane.showMessageDialog(null,"You need to write file name");
				else
					control.saveImage(paint_panel.getBuf_image(),file);	 //tell controller to save
				    //file 
			}