add gamma correction suggested by coni