title: pickling an image object?
body: <p>I'm a complete novice with pickle, and I have a bunch of (about 100,000) images that need to be pickled.</p>
  
  <p>They are first loaded as image object, and converted to data as following:</p>
  
  <pre><code>image = {
      'pixels': im.tostring(),
      'size': im.size,
      'mode': im.mode,
  }
  </code></pre>
  
  <p>Now how do I pickle them into one pkl file?</p>