Improve tile rendering (group tiles into large rectangles)