Fixed bug with picture thumbnails