Set up the DMA notifier stuff, makes M2MF work.
Refactor frame copy out of main method.