Rasterize with reversed x-axis

I’m plotting a heat map with hv.Image((X, Y, Z)), where X is reverse (e.g. [10, 9, 8, ...]). hv.Image plots this with ..., 8, 9, 10 on the x-axis. But if I take the result and give it to rasterize, the image is reversed again, while the axis ticks stay the same. datashade doesn’t work at all with this and moves the image around when I zoom in and out.

Is there a way to pass X to these funcions to make them work again?

It turns out these were funky side effects of having interrupted sampling in X (see How to visualize missing data in Image?). I know the pre-plotting checks cover this. But I wouldn’t have expected the plotting to go THIS wrong if the warning is ignored.