Add grayscale converter.
Almost done re-implementing from fish-tracker.
Add threshold and copying methods to Frame.