Changed color-to-grayscale algorithm
It looked like shit so I'll keep this new one