Selectively merging in newer codes for Orientation operations, stats generation, texture generation and a few new filters from the develop branch.