Um, PathView's constructor doesn't take any arguments. This doesn't look it's being used. I'd prefer to have the views decoupled from the layer element anyway.