Split Cython definitions out into individual pxd files, added and verified frame capturing functionality.