handled some memory problems and handled image orientation
Merge pull request #10 from wymsee/memoryAndRotate

Orientation and Memory Management