Skipping line segments lying outside of the declared plot boundary (possible as part of larger primitives intersecting the boundary or simply when using clipping paths in the original file.)
Fixed problems with the training set generation

Enreached the output by fading out the original image, drawing only within the declared boundary