fix pdf2jpg.js and add info of dependencies in package,json.

usage of pdf2jpg:
  require('pdf2jpg').convert(targetFile, function(err, convertedFile){
      console.log(err, convertedFile);
  })