[WIP] Add thumbnails plugin

- [x] Add basic tests
- [ ] Add html tests
- [ ] Refactor plugin
- [ ] Complete tests