Makes square pattern for the grid geometry if the last argument is not provided