Added per layer invert and grayscale.