Update imgthread.py