Added IsVisible flag to layer. Fixes #123.