Fixed issue #3

TextureData2D will now allow any kind of buffer as input.