code: function(file, callback, quality) {
  		quality = !quality?85:quality;
  		
  		var data = this.jpeg_encode.encode(this, quality);
  		
  		var fd =  this.fs.openSync(file, 'w');
  		var bf = new Buffer(data);
  		
  		this.fs.writeSync(fd, bf, 0, bf.length);
  		this.fs.closeSync(fd);
  		
  		if(callback) {
  			callback.call(this);
  		}
  	}
docs: toJpeg(string file[, function callback, int quality]])
  
  Save palette as a new JPEG image.
  @param file - new image file.
  @param callback - call function after creating a palette.
  @param quality - quality a new image, between 0 and 100 (inclusive).