private void addBlurLayer() {
setVisible(false);
getChildren().removeAll(blurView, colorGlass);
SnapshotParameters parameters = new SnapshotParameters();
Point2D startPointInScene = localToScene(0, 0);
Rectangle2D toPaint = new Rectangle2D(startPointInScene.getX(), startPointInScene.getY(), getLayoutBounds().getWidth(), getLayoutBounds().getHeight());
parameters.setViewport(toPaint);
WritableImage image = new WritableImage((int) toPaint.getWidth(), (int) toPaint.getHeight());
image = getScene().getRoot().snapshot(parameters, image);
blurView.setImage(image);
getChildren().addAll(blurView, colorGlass);