Simplify Jbig2Image.decodeInteger()

The nested braches look a little bit strange, but the new code is actually easier to compare to the [spec](http://www.jpeg.org/public/fcd14492.pdf#page=116).