Fix bug with JPG images. Now video thumbnails generated from duration.