mainImage = model.getImage();
mainImage = model.getDisplayedImage();
    private void showPreview(int savingType)    {        ImgSaverPreviewer preview = new ImgSaverPreviewer(this);        setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));        switch (savingType) {            default:            case ImgSaverUI.IMAGE:                mainImage = model.getImage();                imageComponents = null;                break;            case ImgSaverUI.IMAGE_AND_COMPONENTS:                mainImage = model.getImage();                imageComponents = model.getImageComponents();                break;        }        setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));        preview.initialize();        UIUtilities.centerAndShow(preview);    }