typedef struct _ximage  ximage_t