Node images now work when server is running on Windows platform too.
Some light refactoring with the code.