Implemented texture functionality