implementing getByteBuffer from lwjgl-texture