Fixing palette interlaced images and palette pictures with width % 8 != 0
Use the correct widths when expanding the image.
Merge pull request #167 from nwin/master

Fixed palette interlaced images.