The singlemost frequent mistake made in image processing is to skip gamma conversion before and after performing arithmetic on colour values. 3D rendering pipelines mostly do it right these days, but 2D pipelines are lagging behind. Photoshop only performs blending correctly if you use a linear colour space like Lab. Presumably they don't fix it for RGB because that would annoy a lot of people.