Added Utils::packToX(x, y, xSize) method