Can I assign image to a variable?

My collection looks something like this

ProfileImages = new FS.Collection("ProfileImages", {
    stores: [new FS.Store.FileSystem("profileImages", {path: "~/uploads"})]

When I try to store it in a variable it’s not working. Code is something like this:

file = ProfileImages.findOne({_id: fileid});

url or base64

i think it should be an url string point to file