Minor adjustments to images.py