Broke image processing out into functions.

Beginnings of multiprocessing support in scraper.