Fixed bug where order of photos appeared incorrectly in the thumbnails container