Small improvements to mosaicing