Add controls for exporting to jpeg and tiff formats.

I've made sure that filenames appear correctly in the export UI.

For issue 1894