Update legend items and image refs