protected void setImage(Path image) throws IOException {
        if (FileUtil.control(image)) {
            if (image.toAbsolutePath().getParent()
                    .compareTo(Constants.PROGRAM_TMPSKIN_PATH.resolve(this.name).resolve(Constants.SKIN_PREVIEWIMAGE).toAbsolutePath()) != 0) {
                FileUtil.copyFile(image, Constants.PROGRAM_TMPSKIN_PATH.resolve(this.name).resolve(Constants.SKIN_PREVIEWIMAGE), false);
            }
            this.imagePath = Constants.PROGRAM_TMPSKIN_PATH.resolve(this.name).resolve(Constants.SKIN_PREVIEWIMAGE);
        }
    }