added first implementation of a generatethumbnailworker