Set extension or warn if none there
Set extension or warn if none there

In case of auto-generating the file name, we should add an extension.
If we do not auto-generate the file name, we should warn that the
extension for the file is missing.

matthiasbeyer/imag,matthiasbeyer/imag