Update mapclip.py

First mostly-working script. Tested with one image.