fix #11358: set image format after import
Merge pull request #1724 from mtbc/trac-11358-set-image-format

fix #11358: set image format after import