Removed unnecessary code
Fixed the problem with the byte offset not working for large files that contain the resolution result.

1. Max int was getting in the way. We could use long instead of int but it wouldn't scale and it was inconvenient because skipping bytes works on ints.
2. Now the resolution result binary files are rolled at a reasonable levels. There's also a safety check in the code that errors out early if we ever hit this problem again.