Bug fixes for graphics formats

Fixes the following tickets:

- https://trac.openmicroscopy.org.uk/ome/ticket/11287
- https://trac.openmicroscopy.org.uk/ome/ticket/11237
- https://trac.openmicroscopy.org.uk/ome/ticket/11291
- https://trac.openmicroscopy.org.uk/ome/ticket/11292
- https://trac.openmicroscopy.org.uk/ome/ticket/11475
- https://trac.openmicroscopy.org.uk/ome/ticket/11421