added code to show zoom grid lines. also works for inversion. Revealed tiling bug, need to investigate.