Fix redundant contrast calculation
Removed incorrect math example