Fixes to export of image file name category and tag output.

Some fixes to select XML files.