Fixed bugs in plugin tiff2D

The management of offsets was wrong