added the image data and a mongodb instance