Edit delete planes

Fixed skipping folding lines and added recycling of framebuffers