Add average_image.py