Added additional code for generating pictures according to MPI nodes.