Fixed bug with preview not updating after using eraser