Add code to save thumbnails when grayscale is uploaded as part of a batch operation.