Rearrange imports to fix a bug where Gamera couldn't convert an image to a C++ type
Remove debugging code
remove unused imports