convertbmp: detect invalid file dimensions early