Implemented texture handling on the server side.