if (filepath exists) image.source = filepath; else image.source = "imagenotfound.jpg"
function testImage(URL) { var tester=new Image(); tester.onLoad=isGood; tester.onError=isBad; tester.src=URL; }
function findImage(inputPath) { var image2Find = new Image(); ....
TypeError: Result of expression 'Image' [[object Object]] is not a constructor.