Fix bit order issue of 1,2,4-bit/pixel images. Add new test images. 

Fixes #79.