This code worked for me. I was using the add method vs a static resource. Check the Bridge SDK. That SDK has many ScriptUI examples.
var imageFile = new File( '~/JavaScripts/lambda.png' );
dlg.imageImg = dlg.add('image', 'left:110, top:40, right:125, bottom:62', imageFile.fsName );