A color image map can be inverted by subtracting from 1.0 in x y and z (which act as R G and B).
You can also brighten, darken, increase contrast, and -- if you're clever -- apply gamma correction. If you want to apply "curves" you can create a black-to-white gradient in Photoshop, apply the curve to that gradient, and then use a slice of that image as a "look up table" (if you're interested, I can post more details on this).
It's all arithmetic or a little algebra.
E.g. brighten an image, use an add node to add a small amount (e.g. 0.1, 0.1, 0.1) or add a color (e.g. light gray). To manipulate contrast, subtract 0.5, 0.5, 0.5, and then multiply by a number (1.0 has no effect; 2.0 increases contrast, 0.5 decreases contrast), and then add back 0.5, 0.5, 0.5.
(You'd be shocked at how simple most of the things Photoshop does are at a pixel level — my favorite discovery from a paper on this stuff was that sharpening is done by blurring an image and then subtracting that image from the original (!). Think of it as Sharpened Pixel = Original Pixel x ( 1 + epsilon ) – Blurred Pixel x epsilon. If you use a matrix blur you get crude sharpening, if you use guassian blur you get unsharp mask.)