Refactor #5096: Add ignore clear canvas mode to avoid clearRect call