Fixed a bug that the output tile offset was incorrectly base on 1.
output preview was added.