Fix bug with saving to PNG where pixels would only be drawn if they were within the current window