factor img2midi out of main method
Merge branch 'master' of github.com:neppinger/RSP