Made the thumbnail thread a background task rather than a thread so that it will free the memory used when creating the thumbnail when done.