somewhere in here is the problem of pre-multiplied alpha - or not....
an extra complication. im not even sure about this issue myself - but it certainly affects compositing.
http://www.td-grafik.de/ext/xfrog/alpha/
http://www.gimp.org/docs/plug-in/appendix-alpha.html