Added serialization to image class so that nodes can send images back and forth via mpi