Working glim_image.py