I think because you can't access the texture on an entity you'll need to keep a copy of the texture(s) image for each entity then when applying you simply set the buffer to the texture buffer drawimage at the right place/orientation and then reapply the texture.
However someone else might know a better way.
However someone else might know a better way.