fixing error handling, image convertor for nedb, improving support for embedded version