slm.py now generates patterns from parameters.
load_images - some broadcast / type issues for > 1 image.