fix class style overwrites
make thumb generation an event