image upload and mongodb settings