In the book by Paul Wellin "Programming With Mathematica: An Introduction" (3rd printing; ISBN 978-1-107-00946-2 hardback), he gives an example on page 85 in "Patterns and Rules, Section 4.1".
It appears that the example attempts to demonstrate the use of "/." (ReplaceAll) to invert the RGB encoding of the example Image using the Rule {r,g,b_}:>1-{r,g,b}.
When I attempt to use this construct on an Image that I have imported, the function does not invert the encoding. I am using Mathematica v10.3.