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.
Well, I think my answer was sort of incomplete! It is a good and legitimate question, why the replacement is only working on the data, but not on the image itself. The reason is that Image yields an atomic object: