The legend is now always programmatically generated for raster files.