update imgclip.py for python3