Fix vector usage.
Capitalize Counters key.
Add image filenames into json output.
Drop index.html generation.
Add some comments and cleanup.
Fix stats generation (wrong vector usage).