I would make the data = NULL as the default. If NULL the create does not do the memcpy.
Add a method to getPixel to return the internal data buffer and also add a setPixels