Fixes template 1 for decoding
Merge pull request #2794 from yurydelendik/jbig2-template-1

JBIG2: Fixes template 1 for decoding