Proper resizing of textures.