save image into mongo db