Lots and lots of changes. Whoops. Still need to add large file support to CMakeLists.txt and -rgb doesn't work yet.