FPS improvements

- there was an hard FPS hit, caused by the continuous reallocation of
the screen texture
- texture is now only reallocated if its size has changed, and just
reuploaded into the graphics memory otherwise