SCI-580: fix grid axes selection logic for 2D image explorer