Fix auto contrast expansion
Add black and white points in gamma correction