Fix how indices are generated based on axes order.
Fix how indices are generated based on axes order.

girder/large_image,DigitalSlideArchive/large_image,girder/large_image,DigitalSlideArchive/large_image,girder/large_image,DigitalSlideArchive/large_image