old_contents: 'use strict';
  
  var fs = require('fs');
  var data;
  var buf = module.exports = new Buffer(8);
  var colPalette = require('./color-map');
  
  
  var rs = fs.readFile(__dirname + '/../img/palette-bitmap.bmp', function(err, data){
  
    if (err) return console.log('error buffering bitmap', err);
      paletteInfo.length = data.readUInt32LE(2);//11078
      paletteInfo.width = data.readUInt32LE(18);//100
      paletteInfo.height = data.readUInt32LE(22);//100
      paletteInfo.bitsPerPix = data.readUInt32LE(28);//8 in palette, 24 in non
      paletteInfo.type = data.toString('utf8', 0, 2);//B
  
      CPalette.darken(data);
  
      colPalette.darken(data);
  
      fs.writeFile(__dirname + '/../img/darkenImage.bmp', data, function() {
          if (err) return console.log(err);
  
          CPalette.invert(data);
  
              colPalette.invert(data);
  
              fs.writeFile(__dirname + '/../img/invertImage.bmp', data, function() {
                 if (err) return console.log(err);
          });
      });
  });
  
  
  exports.data = data;
  
  
  
  
  
new_contents: 'use strict';
  
  var fs = require('fs');
  var data;
  var buf = module.exports = new Buffer(8);
  var colPalette = require('./color-map');
  
  
  var rs = fs.readFile(__dirname + '/../img/palette-bitmap.bmp', function(err, data){
  
    if (err) return console.log('error buffering bitmap', err);
  
      colPalette.darken(data);
  
      fs.writeFile(__dirname + '/../img/darkenImage.bmp', data, function() {
          if (err) return console.log(err);
  
          CPalette.invert(data);
  
              colPalette.invert(data);
  
              fs.writeFile(__dirname + '/../img/invertImage.bmp', data, function() {
                 if (err) return console.log(err);
          });
      });
  });
  
  
  exports.data = data;
  
  
  
  
  
subject: Update buffer.js