Optimized transform surface function so everything is buttery smooth now!