Changed rotation to match example photos
Got rid of magic numbers

Also cleaned up code and added erode and dilate methods for better
detection