var layerChannnelImageData = Buffer.concat(psd.layers.map(function(layer) {
    return layer.getChannelImageBinary().buffer;
  }));