Script to hash images and add to mongodb