Fixed bug where layer buffer in pxstore wasn't initialized to the right size.
Prepped for invisible resizing of layers.