fixed frame resizing glitches