fixed image upload

create local and static gridfs instance to save images