removed darkness bias in averaging picel distances