Image Pre-Processing Code

Here is the code that reads in the image, converts it to binary, then finds the staff lines and orients the image accordingly.  Still working on finding the positions of the staff lines.