Draw the preview onto a second canvas to prevent having to redraw the map every time the mouse moves