Added support for buckets in thumbnails plugin