finish image.py