It's already been done... http://www.students.tut.fi/~warp/PovUtils/average/
What you should look into is expanding the averager to accept more formats
and bit-depths.
--
Anthony L. Bennett
http://welcome.to/TonyB
Graphics rendered
by the Dreamachine.