Fix small jumps of the map canvas image after panning