Implementing the Max RGB filter