support for horizontal offset in mode 4

closes #94