synchronized protected void disposeContent() {
if (imageTask != null) {
imageTask.cancel();
}
imageTask = null;
<BUG>Platform.runLater(() -> imageView.setImage(null));
}</BUG>
Node newProgressIndicator(final Task<?> imageTask) {
ProgressIndicator loadingProgressIndicator = new ProgressIndicator(-1);
loadingProgressIndicator.progressProperty().bind(imageTask.progressProperty());

synchronized protected void disposeContent() {
if (imageTask != null) {
imageTask.cancel();
}
imageTask = null;
Platform.runLater(() -> {
imageView.setImage(null);
imageBorder.setCenter(null);
});
}
Node newProgressIndicator(final Task<?> imageTask) {
ProgressIndicator loadingProgressIndicator = new ProgressIndicator(-1);
loadingProgressIndicator.progressProperty().bind(imageTask.progressProperty());
