Fixed potential bug in images.py.

- This only happens on some versions of matplotlib.
Merge branch 'dev-gustav2'
Minor changes to visualize_hog.
Merge branch 'master' of github.com:amitgroup/amitgroup into dev-gustav2