You need to retrieve the GUID of a file document. This can be done with a simple Java action (where item is an argument of type Any Object)
return String.valueOf(item.getId().getGuid());
Then you can generate the following html in an MF and display it in the widget
'<img src="file?thumb=true&guid=' + $guid + '"/>'