Add a layout mode toggle button to switch main page's image list layout.