properly set up shadow buffer's pitch and bug fix on eink update

previously, counters never reach 0!