Update base.py

fixing recursive bug - if multi thumbnails on same file.