Add "Write ppm file" and "Bitmap."

Implements http://rosettacode.org/wiki/Write_ppm_file and http://rosettacode.org/wiki/Bitmap/.
This is a perfect use case for the `try!` macro. Writing `try!(writer.write_line("P6"))` is equivalent to your current match.