Improving mid-infrared imaging and sensing