ENH: tileimages updated to work with more dimensions