implemented TextureManager, variable window size