make leadimage less dependent