change thumbnail generation method