Introduce event legendimageloaded in LegendImage and propagate in classes using LegendImage