DoubleMap sourceMap = new DoubleMap( mapSize, mapSize );
sourceMap.drawCircle( mapSize * 0.375d, mapSize * 0.375d, mapSize * 0.35d, 0.6d );
draw( sourceMap.toNewImage(), "Source map" );
DoubleMap targetMap = new DoubleMap( mapSize, mapSize );
targetMap.drawCircle( mapSize * 0.625d, mapSize * 0.625d, mapSize * 0.35d, 0.8d );
draw( targetMap.toNewImage(), "Target map" );
DoubleMap doubleMap = new DoubleMap( mapSize, mapSize );
doubleMap.paste( targetMap );
doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.ADD );