Update thumbnail_tools.py