PNG is an almost-pure-ruby PNG library. It lets you write a PNG without any C libraries.