I can get this
from (just a pen drawing again)
as just a pgm file, cropped in somewhere inside the black blobs. The script just finds the most extreme white pixel at the top left and top right corners. Apparently it's much easier to prevent white noise in black than black noise in white. So the only preprocessing I had to do by hand was just (inexact) reasonable cropping.