Added docstring, fixed bug that was confusing "image_list" with "images".