p = XCreatePixmap (dpy, window, iw, ih, xgwa.depth);
gc = XCreateGC (dpy, p, 0, &gcv);
XPutImage (dpy, p, gc, image, 0, 0, 0, 0, iw, ih);
p = XCreatePixmap (dpy, window, iw, ih, xgwa.depth);
gc = XCreateGC (dpy, p, 0, &gcv);
XPutImage (dpy, p, gc, image, 0, 0, 0, 0, iw, ih);