Update method for refreshing canvas.
Update dists.