Fixing palette interlaced images and palette pictures with width % 8 != 0