Sped up thumbnail creation by not checking directory every time. Worked on inspection qt gui