added sorting of images

The images are now sorted by their filename.