app: implement the mosaic.