Some suggestions in the attached patch.
In addition to the index error, I'd suggest populating the combo box with the xhtml file _names_, rather than their manifest ids. Many people won't recognize those offhand.
Also the image file filter is broken on the openfile dialog. My png files wouldn't show up unless I changed to "All files".
Yours to do with what you will, of course. Thanks for the plugin!