Update contrast.c