part of the jpeg filesize bug fix. This code gives us a better estimate of how big the files will be at any given picture size.