ENH: added initialization of pixel array

For now, assumes there is only one segment
BUG: initialize frame buffer only for the current frame
ENH: account for multiple segments

Multiple stacks not considered. Round-trip with multiple labels
is working.