WIP: Cleaning flask-iiif

Nothing to review yet cleaning in progress
You can move the implementation from lines 50-57 here.