fixed tool preview bugs when zooming/panning