EGL: creating image from X11 pixmap (sometimes) very slow