Removed some duplicate dirty logic for canvas.