REFACTOR: texture stuff in separate class
Refactor: Histogram in separate class