Added argument 'thumb_number' used to show which image to use for thumbnail generation if agument 'thumb' not given