Added checks on number of header/footer images.
Added checks on number of header/footer images.

jmcnamara/XlsxWriter,yaojingwu1992/XlsxWriter,jmcnamara/XlsxWriter,applicationdevm/XlsxWriter,gechong/XlsxWriter,applicationdevm/XlsxWriter,jkyeung/XlsxWriter,Thhhza/XlsxWriter,applicationdevm/XlsxWriter,Thhhza/XlsxWriter,mdeemer/XlsxWriter,gechong/XlsxWriter,jmcnamara/XlsxWriter,liukaijv/XlsxWriter,Thhhza/XlsxWriter,seize-the-dave/XlsxWriter,yaojingwu1992/XlsxWriter,seize-the-dave/XlsxWriter,applicationdevm/XlsxWriter,seize-the-dave/XlsxWriter,seize-the-dave/XlsxWriter,jvrsantacruz/XlsxWriter,yaojingwu1992/XlsxWriter,jkyeung/XlsxWriter,liukaijv/XlsxWriter,mdeemer/XlsxWriter,jvrsantacruz/XlsxWriter,gechong/XlsxWriter,yaojingwu1992/XlsxWriter,mdeemer/XlsxWriter,liukaijv/XlsxWriter,Thhhza/XlsxWriter,jvrsantacruz/XlsxWriter,liukaijv/XlsxWriter,mdeemer/XlsxWriter,gechong/XlsxWriter,jkyeung/XlsxWriter,jmcnamara/XlsxWriter,jvrsantacruz/XlsxWriter,jkyeung/XlsxWriter