dg_mosaic: Check that all input images have same number of columns