How to Convert a Series of RGB Images into Grayscale and Save Them