add support for generateThumbnail at time