Improved performance

Now updates texture instead of creating a new one for each frame