[#28] Cleaned up stardidi's green channel code

- Made recommended changes.
- Small corrections.
Is it overwriting the original image on disk?