clear unnecessary vars, add case for flat images
debug alignment order
Merge pull request #6 from openconnectome/memory_usage

Memory usage