Modify Image and Mat raw values to be of type BytesData with
image data copied into a hxcpp buffer.