dg_mosaic: Bug fix regarding order of images