The line is still there (commented out) but I don't think it is a good idea to make the decision about the resolution based on the number of pixels of the image. Imagine we extend the image by adding zeros along only one direction, in that case, the algorithm "thinks" there is more "resolution" along that direction just because the number of voxels is larger.