Improved contour detection

Now performs morphological closing to select entire keyboard. Additionally,
selects only the largest contour (which should be the keyboard).