window resizing marks ctx dirty