Digitizing ECG image: new fully automated method and open-source software code