change in grey funtion

Shouldn't have average. Grey is determined by what the eye sees.