make thumbnail generation optional and turn it off by default