fix erasing current image when drawing new shape issue by adding tempCanvas layer