Added thumbnail-generation