Fix #10473 (raster preview icons in layer tree view)