public void setPreviewimage(Path image) {
        try {
            this.skin.setImage(image);
            this.skin.setSkinChanged(true);
        } catch (IOException e) {
            Main.showProblemMessage(e.getMessage());
        }
    }