public  ImagePreview(String src) {
    	super();
       try {                
          image = ImageIO.read(new File(src));
       } catch (IOException ex) {
       }
      setPreferredSize(new Dimension(image.getWidth(), image.getHeight()));
    }