Fix the bitmap info size computation when masks are present.