Fixed an issue with the program not converting the two images to grayscale before comparing them. By outputing some of the intermediate images I've also determined that there is currently an issue with how bitmaps are being shifted when is causing incorrect output.