Work on red component function

-Continued implementation of functions for computing the difference
image
-Restructured file handling to check if a file is opened successfully
for reading/writing. This was discovered as I was not running VS in
Admin mode, so it wasn't writing to C:/ (but didn't throw an error when
it attempted to do so).