Improve bitmap export a little

Use CML as the preferred metadata, add a default file ending if
nothing was specified.

Change-Id: I1f2306624077e3639e24eba2c658f1bdd8f312f0
Merge branch 'export-bitmap'

Change-Id: Ic3d08a4e17bbf51c9f8dc5975b26779fdc874009