first draft using PIL
tidied up, added argparse, grab smaller regions