Update thumbnail.groovy

Support thumbnail images