Added storage of thumbnails
Minimalistic error management