Implemented texture transformation