pixmap initializtion out of gui thread