Separate function to load images from dir.

Continued images.py tidying.
Keep tidying images.py.