Add thumbnail creation to Thumbnail model