Had to put the par(mfrow) commands after the png function