added -r regenerate option, fixed bugs in ImageDB, you have to npm install again