Gray to Histogram.

Python'd a gray-to-histogram thing.  It will accept either a file or a
url of a black + white jpg, but seems to not like pngs or bmps.