Generate thumbnails after metadata is retrieved

- Added functionality to generate the thumbnails only when the all
  metadata (for all video files) are retrieved
- Resolved issues with the paths
- App still crashes sometimes when the app is installed for the first
  time. This point will be investigated later