ODT writer:  Correctly handle images without extensions.

Closes #1729.