Reset canvas state before drawing annotations

Conflicts:
	src/core.js
Merge pull request #3305 from yurydelendik/annotation-clear-state

Reset canvas state before drawing annotations