hi! I just found a bug, this should be tileHeight instead of tileWidth. This causes the vertical mode to not behave correctly if tileWidth and tileHeight is different.