Bug 1095310: correctly detect BMP files that are larger than 64kb