fixed preview display for nodes without files
added functions
Merge pull request #11 from paczian/master

fixed preview display for nodes without files