Use FileList.files instead of DOM to get all images

Because of infinite scrolling, not all file entries are in the DOM.

This fix uses the FileList.files array instead.