FINALLY fixed the threaded pixmap issue