The issue is that at higher resolutions, the outstanding byte counter overflowed in case the image had a lot of blank areas.