adding base image uploader/getter to store images in mongodb.