Avoid clearing the whole canvas.
Merge branch 'hbono/workaround-clearrect' into develop