So far I have tried this:

Page.ClientScript.RegisterStartupScript(this.GetType(), 
 "closePage", 
 "window.returnValue='http://sp-pubdev:88/Resources/Images/testFile.png';
 alert(window.returnValue);
 SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK);", true
);


and this:

Page.ClientScript.RegisterStartupScript(this.GetType(), 
 "closePage", 
 "window.returnValue='http://sp-pubdev:88/Resources/Images/testFile.png';
 alert(window.returnValue);
 window.close();", true
);


With both of these I will see my alter, but the window never closes.  Is there something else I need to be doing here?


Question: Can't get CE_Lossless to work
Answer: The solution was here http://devot-ee.com/add-ons/support/ce-lossless/viewthread/13794

I needed to set a config variable for the Linux path using 


  $config['ce_lossless_linux_path'] = '/usr/bin/';