fix #11358: set image format after import

Fixes http://trac.openmicroscopy.org.uk/ome/ticket/11358: try importing images and then,
```sql
select image.name, format.value from image, format where image.format = format.id;
```