Created a rake task to generate thumbnails.  Also did a tad bit of clean up in the ingest libs