update on the invitation email template and correct GridFS error (GridFS return result, to get the saved image id, use result.fileId rather than result._id)