Fixes to IIIF handler