Code with contrast filter added.