adds thumbnail generation