metadata.py for images