Bugfix/corrupt thumbnails