Display image stored in GridFS where mongodb is not on localhost

I am using GridFS to store my images uploaded in the application inside the MongoDB that is not on localhost. I am setting this mongodb using MONGO_URL parameter. The image gets stored properly but I am not able to get it back on the UI.

This is the FS.Collection code

Images = new FS.Collection(“images”, {
stores: [new FS,Store.GirdFS(“original”)]
});

I am using img tag on the UI like this:
<img src=“cfs/files/images/?store=original” />

Looks like it’s looking image on localhost but in my case MongoDB is located at remote location. I can say that because if I start using the MongoDB on my local machine then it works fine.

Any kind of help is appreciated.

Thanks!