code: public static ImageFrame display(final Image img){
  		ImageFrame frame = new ImageFrame().useDefaultSettings();
  		SwingUtilities.invokeLater( () -> {
  			frame.setImage(img);
  			frame.setVisible(true);
  		});
  		return frame;
  	}
docs: Displays the specified image in a new ImageFrame instance.
  <p>
  Creates a new ImageFrame, sets the specified image, and schedules a
  call to <tt>setVisible(true)</tt> on the AWT event dispatching thread.
  @param img to be displayed
  @return the frame that displays the image.
  
  @see #display(Img)
  @since 1.4