Modified maingui.m to use montage3 function.