Adding support for layer-specific, collapsable legend image