- gamma correction, bugfixes and minor refactoring