Help please!

I have some simulation results to display, and I need to know how to create new jpegs, painting them pixel by pixel, and altering existing ones.

thanks!