IIIF/Image Server tiled images all jumbled

I’ve tiled images using Image Server but some of them have come out jumbled.

They start like this:

But when zooming in become this:

I’ve tried retiling them but they just do the same thing.

Any ideas?