Refactored RGB channel compression into the RGB Channel class