I used to do a lot of photo editing when I was young - the free program that I remember the most is called gimp, but I did mainly use photoshop.
Might want to check out gimp, not sure if it is what you're looking for though -
http://www.gimp.org/
Foz