modify canvas layer to hide it when drawing polygon