Move the logic for lead_image_path into the helper