Machine learning tool scans lung X-rays to predict heart failure