use wxUint8 instead of uint8_t