added mongodb gridfs support.